
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>编辑订单</title>
    <%-- 静态包含 base标签、css样式、jQuery文件 --%>
    <%@ include file="/page/common/header.jsp" %>
</head>
<body>
    <div id="header">
        <span class="wel_word">编辑订单</span>
    </div>

    <div id="container">
        <form action="client/petServlet" method="post">
            <input type="hidden" name="action" value="${ empty param.id ? "add" : "update" }" />
            <table>
                <tr>
                    <th>宠物ID</th>
                    <th>订单ID</th>
                    <th>宠物状态</th>
                    <th>宠物名称</th>
                    <th>宠物描述</th>
                </tr>
                <tr>
                    <td><input name="id" type="text" value="${requestScope.pets.id}"></td>
                    <td><input name="orderid" type="text" value="${requestScope.pets.orderid}"></td>
                    <td><input name="state" type="text" value="${requestScope.pets.state}"></td>
                    <td><input name="name" type="text" value="${requestScope.pets.name}"></td>
                    <td><input name="description" type="text" value="${requestScope.pets.description}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td><input type="submit" value="提交"></td>
                </tr>
            </table>
        </form>
    </div>
    <%--静态包含页脚内容--%>
    <%@include file="/page/common/footer.jsp" %>
</body>
</html>
